package com.oocl.Bean;

public class Customer implements Comparable{
	private String id;
	private String name;
	private String sex;
	private String birthday;
	private String address;
	private String cell;
	
	public Customer(){}
	
	public Customer(String id, String name, String sex, String birthday,
			String address, String cell) {
		super();
		this.id = id;
		this.name = name;
		this.sex = sex;
		this.birthday = birthday;
		this.address = address;
		this.cell = cell;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getBirthday() {
		return birthday;
	}

	public void setBirthday(String birthday) {
		this.birthday = birthday;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getCell() {
		return cell;
	}

	public void setCell(String cell) {
		this.cell = cell;
	}
	
	public String toString(){
		String string = this.getId()+"\t"+this.getName()+"\t"+this.getSex()
				+"\t"+this.getBirthday()+"\t"+this.getAddress()
				+"\t\t"+this.getCell();
		return string;
	}

	@Override
	public int compareTo(Object o) {
		Customer customer =(Customer)o;
		return this.getName().compareTo(customer.getName());
	}
	
}
